package sdw.ufal.p3.form;

import sdw.ufal.p3.util.Constants;
import gov.tjpr.entity.pagination.Page;

public class LogonForm extends SDWBaseForm{

	private static final long serialVersionUID = 770589514305147219L;
	
	private String login;
	private String nome;
	private boolean situacao;
	
	// navegação - listagem
    private String logonPageSize;
    private String logonPageNumber;
    private String logonSortColumn;
    private String logonSortOrder;
	
	private String parentForm;
	private String backUrl;
	
	public LogonForm(){
		this.setPage(1);
		this.setLogonPageSize( String.valueOf(Constants.PAGE_SIZE));
		this.setLogonPageNumber("1");
		this.setLogonSortColumn("nome");
		this.setLogonSortOrder( Page.Order.ASC.toString());		
	}
	
	public void setLogin(String login) {
		this.login = login;
	}
	public String getLogin() {
		return login;
	}
	public void setNome(String nome) {
		this.nome = nome;
	}
	public String getNome() {
		return nome;
	}
	public void setSituacao(boolean situacao) {
		this.situacao = situacao;
	}
	public boolean isSituacao() {
		return situacao;
	}

	public void setLogonPageSize(String logonPageSize) {
		this.logonPageSize = logonPageSize;
	}

	public String getLogonPageSize() {
		return logonPageSize;
	}

	public void setLogonPageNumber(String logonPageNumber) {
		this.logonPageNumber = logonPageNumber;
	}

	public String getLogonPageNumber() {
		return logonPageNumber;
	}

	public void setLogonSortColumn(String logonSortColumn) {
		this.logonSortColumn = logonSortColumn;
	}

	public String getLogonSortColumn() {
		return logonSortColumn;
	}

	public void setLogonSortOrder(String logonSortOrder) {
		this.logonSortOrder = logonSortOrder;
	}

	public String getLogonSortOrder() {
		return logonSortOrder;
	}

	public void setParentForm(String parentForm) {
		this.parentForm = parentForm;
	}

	public String getParentForm() {
		return parentForm;
	}

	public void setBackUrl(String backUrl) {
		this.backUrl = backUrl;
	}

	public String getBackUrl() {
		return backUrl;
	}
}
